package com.lantosec.hmrp.core.mvc;

import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

@Getter
@Setter
public class Combobox {
    private String id;
    private String text;
    private String desc;
    private Map<String,Object> attributes;
    private List<Combobox> children;
    private int size;

    public Combobox(String id, String text, String desc) {
        super();
        this.id = id;
        this.text = text;
        this.desc = desc;
    }
    public Combobox() {
        super();
    }
    public Combobox(String id, String text) {
        super();
        this.id = id;
        this.text = text;
        this.desc = text;
    }
    public Combobox(String id, String text, String desc, int size) {
        super();
        this.id = id;
        this.text = text;
        this.desc = desc;
        this.size = size;
    }
    @Override
    public String toString() {
        return "Combobox{" +
                "id='" + id + '\'' +
                ", text='" + text + '\'' +
                ", desc='" + desc + '\'' +
                ", attributes=" + attributes +
                ", children=" + children +
                ", size=" + size +
                '}';
    }
}
